import type { App } from 'vue';
import {
  Edit,
  Fold,
  Aim,
  UserFilled,
  Iphone,
  Expand,
  Coffee,
  ChatDotRound,
  CollectionTag,
  Bell,
  Avatar
} from '@element-plus/icons';

const elIcons = [
  Edit,
  Fold,
  Aim,
  UserFilled,
  Iphone,
  Expand,
  Coffee,
  ChatDotRound,
  CollectionTag,
  Bell,
  Avatar
];

export function registerIcon(app: App): void {
  for (let i = 0; i < elIcons.length; i++) {
    app.component(elIcons[i].name, elIcons[i]);
  }
}
